<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

    </style>
</head>

<body>
    <img src="./学习素材/下载 (2).jfif" id="box">
    <script>
        let imags = ["./学习素材/下载 (0).jfif", "./学习素材/下载 (1).jfif", "./学习素材/下载 (2).jfif", "./学习素材/下载 (3).jfif"]
        let index = 0;
        setInterval(function () {
            let photh = document.getElementById('box').src = imags[index];
            console.log(photh);
            index++;
            if (index > 3) {
                index = 0;
            }
        }, 1)
    </script>
</body>

</html>